package logmanager.proxy;

public class ServerLogManagerProxy implements logmanager.proxy.ServerLogManager {
  private String _endpoint = null;
  private logmanager.proxy.ServerLogManager serverLogManager = null;
  
  public ServerLogManagerProxy() {
    _initServerLogManagerProxy();
  }
  
  public ServerLogManagerProxy(String endpoint) {
    _endpoint = endpoint;
    _initServerLogManagerProxy();
  }
  
  private void _initServerLogManagerProxy() {
    try {
      serverLogManager = (new logmanager.proxy.ServerLogManagerServiceLocator()).getServerLogManager();
      if (serverLogManager != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)serverLogManager)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)serverLogManager)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (serverLogManager != null)
      ((javax.xml.rpc.Stub)serverLogManager)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public logmanager.proxy.ServerLogManager getServerLogManager() {
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager;
  }
  
  public java.lang.String getProperties() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getProperties();
  }
  
  public int getSize() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getSize();
  }
  
  public boolean connect() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.connect();
  }
  
  public logmanager.proxy.Bloc getData(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getData(index);
  }
  
  public int getPosition(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getPosition(index);
  }
  
  public void loadProperties() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    serverLogManager.loadProperties();
  }
  
  public int setFilter(int index, java.lang.String field, java.lang.String value) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.setFilter(index, field, value);
  }
  
  public java.lang.String[] getFiles() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFiles();
  }
  
  public java.lang.String getResourcesPath() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getResourcesPath();
  }
  
  public void saveProperties() throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    serverLogManager.saveProperties();
  }
  
  public int addLogJobByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.addLogJobByName(fileName);
  }
  
  public void removeLog(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    serverLogManager.removeLog(index);
  }
  
  public int removeLogByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.removeLogByName(fileName);
  }
  
  public java.lang.String[] getDataHeader(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getDataHeader(index);
  }
  
  public java.lang.String[] getDataHeaderByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getDataHeaderByName(fileName);
  }
  
  public logmanager.proxy.Bloc getNextData(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getNextData(index);
  }
  
  public logmanager.proxy.Bloc getNextDataByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getNextDataByName(fileName);
  }
  
  public logmanager.proxy.Bloc getNextDataBySearch(int index, java.lang.String field, java.lang.String value) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getNextDataBySearch(index, field, value);
  }
  
  public logmanager.proxy.Bloc getNextDataByNameBySearch(java.lang.String fileName, java.lang.String field, java.lang.String value) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getNextDataByNameBySearch(fileName, field, value);
  }
  
  public logmanager.proxy.Bloc getPrevData(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getPrevData(index);
  }
  
  public logmanager.proxy.Bloc getPrevDataByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getPrevDataByName(fileName);
  }
  
  public logmanager.proxy.Bloc getPrevDataBySearch(int index, java.lang.String field, java.lang.String value) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getPrevDataBySearch(index, field, value);
  }
  
  public logmanager.proxy.Bloc getPrevDataByNameBySearch(java.lang.String fileName, java.lang.String field, java.lang.String value) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getPrevDataByNameBySearch(fileName, field, value);
  }
  
  public logmanager.proxy.Bloc getDataByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getDataByName(fileName);
  }
  
  public int setFilterByName(java.lang.String fileName, java.lang.String field, java.lang.String value) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.setFilterByName(fileName, field, value);
  }
  
  public java.lang.String getFilterField(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFilterField(index);
  }
  
  public java.lang.String getFilterFieldByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFilterFieldByName(fileName);
  }
  
  public java.lang.String getFilterValue(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFilterValue(index);
  }
  
  public java.lang.String getFilterValueByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFilterValueByName(fileName);
  }
  
  public int setReadSize(int index, int readSize) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.setReadSize(index, readSize);
  }
  
  public int setReadSizeByName(java.lang.String fileName, int readSize) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.setReadSizeByName(fileName, readSize);
  }
  
  public int getReadSize(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getReadSize(index);
  }
  
  public int getReadSizeByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getReadSizeByName(fileName);
  }
  
  public int getPositionByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getPositionByName(fileName);
  }
  
  public int getFirstsLineSize(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFirstsLineSize(index);
  }
  
  public int getFirstsLineSizeByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getFirstsLineSizeByName(fileName);
  }
  
  public int getLogSizeByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getLogSizeByName(fileName);
  }
  
  public int getLogSize(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getLogSize(index);
  }
  
  public int getLineReadCount(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getLineReadCount(index);
  }
  
  public int getLineReadCountByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getLineReadCountByName(fileName);
  }
  
  public java.lang.String getMaxDateByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getMaxDateByName(fileName);
  }
  
  public java.lang.String getMaxDate(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getMaxDate(index);
  }
  
  public java.lang.String getMinDateByName(java.lang.String fileName) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getMinDateByName(fileName);
  }
  
  public java.lang.String getMinDate(int index) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    return serverLogManager.getMinDate(index);
  }
  
  public void setResourcesPath(java.lang.String path) throws java.rmi.RemoteException{
    if (serverLogManager == null)
      _initServerLogManagerProxy();
    serverLogManager.setResourcesPath(path);
  }
  
  
}